package com.wzw.service.impl;

import com.wzw.dao.IStudentDao;
import com.wzw.dao.impl.StudentDao;
import com.wzw.service.IStudentService;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.aop.framework.ProxyFactoryBean;

public class StudentService implements IStudentService {
    private Log log = LogFactory.getLog(StudentService.class);

    private IStudentDao dao;
    public void setDao(IStudentDao dao) {
        this.dao = dao;
    }
    @Override
    public void save() {
//        log.info("业务层保存学生数据！");
        System.out.println("业务层保存学生数据！");
        dao.save();
    }

    @Override
    public void update() {
        log.info("业务层更新学生数据！");
    }

    @Override
    public void delete() {
        log.info("业务层删除学生数据！");
    }
}
